package com.youlai.system.services.impl;

import com.youlai.system.entity.UserEntity;
import com.youlai.system.repository.UserRepository;
import com.youlai.system.services.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserRepository userRepository;

    @Override
    public String FindUser(Integer id) {
        UserEntity shopUser= userRepository.findById(id).get();
        return (shopUser.getName()+"\n" );
    }


}


